From 5fac6c5a4456d55eadf86d3d7572c12ecc999129 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 15 Nov 2007 02:03:25 +0000 Subject: [PATCH] Write description in GDB if we don't have notes. --- gdb.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gdb.c b/gdb.c index 0c7da122f..b6e2fa6fc 100644 --- a/gdb.c +++ b/gdb.c @@ -106,8 +106,8 @@ /*******************************************************************************/ -/* static char gdb_release[] = "$Revision: 1.59 $"; */ -static char gdb_release_date[] = "$Date: 2007/08/25 19:35:25 $"; +/* static char gdb_release[] = "$Revision: 1.60 $"; */ +static char gdb_release_date[] = "$Date: 2007/11/15 02:03:25 $"; static gbfile *fin, *fout; static int gdb_ver, gdb_category, gdb_via, gdb_roadbook; @@ -1200,7 +1200,10 @@ write_waypoint( FWRITE_LATLON(wpt->latitude); /* latitude */ FWRITE_LATLON(wpt->longitude); /* longitude */ FWRITE_DBL(wpt->altitude, unknown_alt); /* altitude */ - FWRITE_CSTR(wpt->notes); + if (wpt->notes) + FWRITE_CSTR(wpt->notes); + else + FWRITE_CSTR(wpt->description); FWRITE_DBL(WAYPT_GET(wpt, proximity, unknown_alt), unknown_alt); /* proximity */ FWRITE_i32(display); /* display */ FWRITE_i32(0); /* color (colour) */ -- 2.30.2